import index_worker from '../components/worker/index.vue';

import Showmsg from '../components/worker/showmsg/showmsg.vue';
import Projecthead from '../components/worker/showproject/projecthead.vue';
import Showdispatch from '../components/worker/showproject/showdispatch.vue';
import Showrepair from '../components/worker/showproject/showrepair.vue';
import Showsecurity from '../components/worker/showproject/showsecurity.vue';


export default {
    routes: [
        {
            path: '/index_worker',
            component: index_worker,
            redirect: '/index_worker/showmsg',
            meta: { requiresAuth: true },//路由守卫
            children: [
                {
                    //显示通知
                    path: 'showmsg',
                    component: Showmsg,
                }, {
                    //工作显示界面
                    path: 'projecthead',
                    redirect:'projecthead/showdispatch',
                    component: Projecthead,
                    children: [{
                        path: 'showdispatch',
                        component: Showdispatch,
                    }, {
                        path: 'showsecurity',
                        component: Showsecurity,
                    }, {
                        path: 'showrepair',
                        component: Showrepair
                    }


                    ]
                }
            ]
        }
    ]
}